package com.onlineclass.classserver.service.impl;

import com.onlineclass.beas.Course;
import com.onlineclass.beas.User;
import com.onlineclass.beas.UserInfo;
import com.onlineclass.classserver.mapper.GetCourseInfoMapper;
import com.onlineclass.classserver.service.IGetCourseinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseInfoService implements IGetCourseinfoService {

    @Autowired
    GetCourseInfoMapper getCourseInfoMapper;


    @Override
    public List<Course> selectCourse(User user) {
        return getCourseInfoMapper.selectCourse(user.getId());
    }
}
